package com.zja.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 用户实体类
 * @author JA
 */
@Data
//自动生成 getter/setter、toString、equals、hashCode
@NoArgsConstructor
//无参构造方法
@AllArgsConstructor
//全参构造方法
public class User {
    private Long id;
    private String username;
    private String password;
    private String email;
    private String avatar;
    private Timestamp createTime;
    private Timestamp updateTime;
    private String role;
    // 'user', 'admin', 'moderator'
}
